package top.hidoctor.auscultation.adapter;

import android.view.View;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import top.hidoctor.auscultation.R;
import top.hidoctor.auscultation.feature.activity.LabelDetailActivity;

public class LabelImageAdapter extends BaseQuickAdapter<Integer> {
    public LabelImageAdapter(int layoutResId, List<Integer> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Integer item) {
        ImageView img = helper.getView(R.id.img);
        img.setImageDrawable(mContext.getResources().getDrawable(item));
    }
}
